﻿<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

  <xsl:template match="/">

    <xsl:apply-templates select="filters" />
    
  </xsl:template>

  <xsl:template match="filters">
    <table>
      <xsl:apply-templates select="filter" />
    </table>
  </xsl:template>

  <xsl:template match="filter">
    <tr>
      <td>
        <a>
          <xsl:attribute name="href">
            <xsl:value-of select="../@pageurl" />?tag=<xsl:value-of select="@value" />
          </xsl:attribute>
          <xsl:value-of select="@name" disable-output-escaping="yes" />
        </a>
      </td>
    </tr>
  </xsl:template>

</xsl:stylesheet>
